//
//  FQDetailHeaderSectionController.swift
//  SwiftProject
//
//  Created by 董駸 on 2023/4/14.
//

import UIKit

class FQDetailHeaderSectionController: BaseListSectionController {
    var model : FQDetailHeaderModel!
    
    override init() {
        super.init()
        inset = UIEdgeInsets(top: 0, left: 0, bottom: 20, right: 0)
    }
    
    override func sizeForItem(at index: Int) -> CGSize {
        CGSize(width: SCREEN_WIDTH, height: 500~)
    }
    
    override func cellForItem(at index: Int) -> UICollectionViewCell {
        let cell = dequeueReusableCell(cellType: FQDetailHeaderCollectionViewCell.self, index: index)
        cell.model = model
        return cell
    }
    
    override func didSelectItem(at index: Int) {
      
    }
    
    override func didUpdate(to object: Any) {
        model = object as? FQDetailHeaderModel
    }
}
